package People;
import Course.course;

public class teacher extends people {
    private course[] teachCourse;
    public teacher(){}
    public teacher(int ID, String name, String gender) {
        this.id = ID;
        this.name = name;
        this.gender = gender;
        this.teachCourse = new course[0];
    }
    public void addTeachCourse(course course) {
        for(int i=0;i<this.teachCourse.length;i++){
            if(teachCourse[i]==null){
                teachCourse[i]=course;
                System.out.print("开课成功");
                break;
            }//教师开设课程
        }
    }
}